﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotePlan.aspx.cs" Inherits="MedicareNoteManagerWeb.Web.NotePlan" %>

<%@ Register Assembly="Comm" Namespace="Comm" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Css/TableStyle.css" rel="stylesheet" type="text/css" />
    <link href="../lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" />
    <link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="../lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/core/base.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
    <script src="../../lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
    <script src="../lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 967px;
            text-align: right;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#FindDropArea").ligerComboBox();
        });

        $(function () {
            $("#txtsendtime").ligerDateEditor();
        });

        var win1;
        function f_open() {
            if (win1) win1.show();
            else win1 = $.ligerDialog.open({ height: 430, url: 'NoteplanAdd.aspx', width: 630, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 200px" class="liger-form">
        <div>
            <table style="width: 100%; margin-left:10px;">
                <tr>
                    <td class="style6">
                        计划名称：
                        <asp:TextBox ID="txt_FindUser" CssClass="l-text" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:DropDownList ID="FindDropArea" CssClass="l-checkbox" runat="server" Height="20px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" CssClass="l-button" Text="查询" Width="55px"
                            OnClick="Button1_Click" />
                        <asp:Label ID="lbl_Message" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2" colspan="3">
                        <asp:GridView ID="Grd_User" runat="server" CssClass="l-grid" AutoGenerateColumns="False"
                            OnRowDeleting="Grd_User_RowDeleting" DataKeyNames="planid" OnRowCancelingEdit="Grd_User_RowCancelingEdit"
                            OnRowEditing="Grd_User_RowEditing" OnRowDataBound="Grd_User_RowDataBound" OnRowUpdating="Grd_User_RowUpdating"
                            AllowSorting="True" OnPageIndexChanging="Grd_User_PageIndexChanging" AllowPaging="True"
                            Width="950px">
                            <EmptyDataTemplate>
                                <div style="background-color: #FFFFD6; color: #ff0000; text-align: center; font-size: 18px">
                                    暂时没有数据!
                                </div>
                            </EmptyDataTemplate>
                            <AlternatingRowStyle CssClass="l-grid-row" />
                            <Columns>
                                <asp:TemplateField HeaderText="计划名称">
                                    <ControlStyle CssClass="l-grid" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbplanname" Text='<%# Eval("planname") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtplanname" runat="server" Text='<%# Bind("planname") %>' Width="100px"></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="模板名称">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbplanmouble" Text='<%# Eval("MoubleName") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlEarth" CssClass="" runat="server" Width="150px">
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="计划说明">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="200px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbplanexplain" Text='<%# Eval("planexplain") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtplanexplain" runat="server" Text='<%# Bind("planexplain") %>'
                                            Width="200px"></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="短信内容">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="200px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbnotecontent" Text='<%# Eval("notecontent") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtnotecontent" runat="server" Text='<%# Bind("notecontent") %>'
                                            Width="200px"></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="发送时间">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="100px" />
                                    <ItemTemplate>
                                        <asp:Label runat="server" ID="lbsendtime" Text='<%# Eval("sendtime") %>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtsendtime" CssClass="l-text" runat="server" Width="150px" Text='<%# Eval("sendtime") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="编辑">
                                    <ControlStyle CssClass="l-grid-row" />
                                    <ItemStyle Width="50px" />
                                    <ItemTemplate>
                                        <input type="button" size="120" onclick='$.ligerDialog.open({ height: 430, url: "NoteplanAdd.aspx?ID=<%# Eval("planid") %>", width: 630, showMax: true, showToggle: true, showMin: true, isResize: true, slide: false });'
                                            class="l-button" value="编辑" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowDeleteButton="True" HeaderText="删除">
                                    <ItemStyle Width="30px" />
                                </asp:CommandField>
                            </Columns>
                            <HeaderStyle CssClass="l-grid-row" />
                            <PagerTemplate>
                                当前第:
                                <asp:Label ID="LabelCurrentPage" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageIndex + 1 %>"></asp:Label>
                                页/共:
                                <asp:Label ID="LabelPageCount" runat="server" Text="<%# ((GridView)Container.NamingContainer).PageCount %>"></asp:Label>
                                页
                                <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                                    Visible='<%#((GridView)Container.NamingContainer).PageIndex != 0 %>'>首页</asp:LinkButton>
                                <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                                    CommandName="Page" Visible='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'>上一页</asp:LinkButton>
                                <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>下一页</asp:LinkButton>
                                <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                                    Visible='<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>'>尾页</asp:LinkButton>
                                转到第
                                <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1 %>' />页
                                <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-2"
                                    CommandName="Page" Text="GO" />
                            </PagerTemplate>
                            <RowStyle CssClass="l-grid-row" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
        <div class="buttons">
            <table style="width: 100%;">
                <tr>
                    <td>
                    </td>
                    <td class="style1">
                        <input type="button" size="120" onclick="f_open()" class="l-button" value="添加"/>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Label ID="lbl_Message1" runat="server"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
